package com.ssy.lingxi.logistics.api.dto.request;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 订单商品运费详情
 * @author yzc
 * @version 2.0.0
 * @date 2021/9/14
 */
public class ProductFreightDetail implements Serializable {
    private static final long serialVersionUID = -6338457876855942099L;

    /**
     * 运费模板id
     */
    @NotNull(message = "运费模板id不能为空")
    private Long templateId;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空")
    private Double count;

    /**
     * 单件重量(KG)
     */
    @NotNull(message = "单件重量(KG)不能为空")
    private Double weight;

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public Double getCount() {
        return count;
    }

    public void setCount(Double count) {
        this.count = count;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }
}